package net.begincode.admin.bean;

import com.google.common.base.Preconditions;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

public class KeyWordParam implements Serializable,ParamCheck{
    private static final long serialVersionUID = -8508030580641782589L;
    //关键字名称
    private String keyWord;
    @Override
    public void checkParam(){
        Preconditions.checkArgument(StringUtils.isNoneEmpty(keyWord),"keyword not empty");
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }
}
